package com.ns.core.vo.bs;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 服务返回实体
 *
 * @author liaowei
 */
@Data
@ToString
@Accessors(chain = true)
public class BaseVO implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 名称
     */
    private String name;

    /**
     * code
     */
    private String code;

    /**
     * 父id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;
}
